/*
 * AppServNotificationnHandler.h
 *
 *  Created on: Apr 9, 2017
 *      Author: zhangjf
 */

#ifndef SRC_APPSERVNOTIFICATIONNHANDLER_H_
#define SRC_APPSERVNOTIFICATIONNHANDLER_H_

#include <Poco/Runnable.h>
#include <Poco/Net/WebSocket.h>
#include <Poco/Net/StreamSocket.h>

using namespace Poco;
using namespace Poco::Net;

class AppServNotificationnHandler : public Runnable
{
public:
	AppServNotificationnHandler(WebSocket& ws, StreamSocket& ss)
	: _webSocket(ws)
	, _streamSocket(ss) {}
	virtual ~AppServNotificationnHandler() {}

	virtual void run();

private:
	WebSocket& _webSocket;
	StreamSocket& _streamSocket;
};

#endif /* SRC_APPSERVNOTIFICATIONNHANDLER_H_ */
